import { get, post, put, del } from "../utils/request";
export const loadProductCategories = (page) =>
  get("/api/v1/admin/productcategory", { page });
export const addCategories = (data) =>
  post("/api/v1/admin/productcategory", data);

export const updataCategories = (id, data) =>
  put(`/api/v1/admin/productcategory/${id}`, data);

export const deleteCategories = (id) =>
  del("/api/v1/admin/productcategory/" + id);
